﻿@using InnovaApp.Layers.ResourcesLayer.Properties
@model InnovaApp.Portals.MVC4Portal.Models.AdvancedSamples_OrderWithDetailsModel
@section featured {
	<section class="featured">
		<div class="content-wrapper">
			<hgroup class="title">
				<h1>@Model._PageTitle</h1>
				<br />
				<h2>@Model._PageMessage</h2>
			</hgroup>
			<p class="message-info">
				@Resources.View_AdvancedSamples_MessageInfo
			</p>
		</div>
	</section>
}
@using (Ajax.BeginForm(new AjaxOptions() { HttpMethod = "Post", OnSuccess = "$.fn.MainAjaxSuccess", OnFailure = "$.fn.MainAjaxFailure" }))
{
	<fieldset>
		<legend>@Resources.View_AdvancedSamples_OrderWithDetails_OrderHeaderCaption</legend>
		<div class="k-widget OrderForm rounded5">
			@Html.EditorFor(m => m.CurrentOrder)
			<input type="submit" value="Order" id="cmdSubmit" class="k-button" />
		</div>
	</fieldset>
}
@if (Model.InvolvedCode != null)
{
    if (Model.InvolvedCode.Count > 0)
    { 
    <section>
        <span class="involvedCode">@Resources.Views_All_InvolvedCode</span>
        <div id="divInvolvedCode">
            @Html.Partial("_InvolvedCode", Model.InvolvedCode)
        </div>
    </section>
    }
}<div class="notDisplayed">
	<!--Those controls are here to avoir to transfert product list and vat list at each detail row-->
	@Html.DropDownList("products", Model.Products, new { @class = "ddlProductsFiller notDisplayed" })
</div>
